package cn.analysys.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.JobKey;

import java.util.Date;

/**
 * @author jiangbang
 * @date 2017/4/14
 */
public class HelloQuartzJob implements Job {
    

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        JobKey jobKey = context.getJobDetail().getKey();
        System.err.println("SimpleJob says: " + jobKey + " executing at "+ new Date());
        System.err.println("执行任务");
    }
}
